package org.itheimma.springbootquickstart.service.ipml;

import org.itheimma.springbootquickstart.mapepr.ImgMapper;
import org.itheimma.springbootquickstart.pojo.Images;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service//注册到service中
public class ImgService implements org.itheimma.springbootquickstart.service.ImgService {
    @Autowired
    private ImgMapper imgMapper;
//    @Override
//    public Images findByImgId(int imageId) {
//        Images i = imgMapper.findByImgId(imageId);
//        return i;
//    }

    @Override
    public void upload(int threeId, String imageUrl, String uploadedBy) {
        imgMapper.add(threeId,imageUrl,uploadedBy);
    }
}
